<template>
    <div class="nav-bar">
      <div class="left">
        <slot name="left"></slot>
      </div>
      <div class="center">
        <slot name="center"></slot>
      </div>
      <div class="right">
        <slot name="right"></slot>
      </div>
    </div>
</template>

<script>
export default {
  name: 'NavBar'
}
</script>
<style>
.nav-bar{
  display: flex;
  line-height: 45px;
  height: 45px;
  text-align: center;
  align-items: center;
  background-color: #dd524d;
  color: #fff;
  z-index: 999;
}
.center{
  flex: 1;
}
.left{
  width: 80px;
}
.right{
  width: 80px;
}
</style>
